'use strict';

const { Controller } = require('egg');

class OrdersController extends Controller {
    async index() {
        let result =await this.ctx.service.orders.index()
        this.ctx.body={
            code:200,
            message:"查询成功",
            data:result
        }
    }
}

module.exports = OrdersController;
